Optimal. Leaf size=130 \[ \frac{5}{8} a^2 x \sqrt{c x^2-\frac{a^2 c}{b^2}}+\frac{5 a b \left (c x^2-\frac{a^2 c}{b^2}\right )^{3/2}}{12 c}+\frac{b (a+b x) \left (c x^2-\frac{a^2 c}{b^2}\right )^{3/2}}{4 c}-\frac{5 a^4 \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{c x^2-\frac{a^2 c}{b^2}}}\right )}{8 b^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.181774, antiderivative size = 130, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185 \[ \frac{5}{8} a^2 x \sqrt{c x^2-\frac{a^2 c}{b^2}}+\frac{5 a b \left (c x^2-\frac{a^2 c}{b^2}\right )^{3/2}}{12 c}+\frac{b (a+b x) \left (c x^2-\frac{a^2 c}{b^2}\right )^{3/2}}{4 c}-\frac{5 a^4 \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{c x^2-\frac{a^2 c}{b^2}}}\right )}{8 b^2} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x)^2*Sqrt[-((a^2*c)/b^2) + c*x^2],x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 22.4028, size = 117, normalized size = 0.9 \[ - \frac{5 a^{4} \sqrt{c} \operatorname{atanh}{\left (\frac{\sqrt{c} x}{\sqrt{- \frac{a^{2} c}{b^{2}} + c x^{2}}} \right )}}{8 b^{2}} + \frac{5 a^{2} x \sqrt{- \frac{a^{2} c}{b^{2}} + c x^{2}}}{8} + \frac{5 a b \left (- \frac{a^{2} c}{b^{2}} + c x^{2}\right )^{\frac{3}{2}}}{12 c} + \frac{b \left (a + b x\right ) \left (- \frac{a^{2} c}{b^{2}} + c x^{2}\right )^{\frac{3}{2}}}{4 c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)**2*(-a**2*c/b**2+c*x**2)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.181677, size = 114, normalized size = 0.88 \[ \frac{\sqrt{c \left (x^2-\frac{a^2}{b^2}\right )} \left (b \sqrt{x^2-\frac{a^2}{b^2}} \left (-16 a^3+9 a^2 b x+16 a b^2 x^2+6 b^3 x^3\right )-15 a^4 \log \left (\sqrt{x^2-\frac{a^2}{b^2}}+x\right )\right )}{24 b^2 \sqrt{x^2-\frac{a^2}{b^2}}} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x)^2*Sqrt[-((a^2*c)/b^2) + c*x^2],x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.026, size = 113, normalized size = 0.9 \[{\frac{5\,{a}^{2}x}{8}\sqrt{-{\frac{{a}^{2}c}{{b}^{2}}}+c{x}^{2}}}-{\frac{5\,{a}^{4}}{8\,{b}^{2}}\sqrt{c}\ln \left ( \sqrt{c}x+\sqrt{-{\frac{{a}^{2}c}{{b}^{2}}}+c{x}^{2}} \right ) }+{\frac{{b}^{2}x}{4\,c} \left ( -{\frac{{a}^{2}c}{{b}^{2}}}+c{x}^{2} \right ) ^{{\frac{3}{2}}}}+{\frac{2\,ab}{3\,c} \left ({\frac{c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }{{b}^{2}}} \right ) ^{{\frac{3}{2}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)^2*(-a^2*c/b^2+c*x^2)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 - a^2*c/b^2)*(b*x + a)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.242017, size = 1, normalized size = 0.01 \[ \left [\frac{15 \, a^{4} \sqrt{c} \log \left (2 \, b^{2} c x^{2} - 2 \, b^{2} \sqrt{c} x \sqrt{\frac{b^{2} c x^{2} - a^{2} c}{b^{2}}} - a^{2} c\right ) + 2 \,{\left (6 \, b^{4} x^{3} + 16 \, a b^{3} x^{2} + 9 \, a^{2} b^{2} x - 16 \, a^{3} b\right )} \sqrt{\frac{b^{2} c x^{2} - a^{2} c}{b^{2}}}}{48 \, b^{2}}, -\frac{15 \, a^{4} \sqrt{-c} \arctan \left (\frac{c x}{\sqrt{-c} \sqrt{\frac{b^{2} c x^{2} - a^{2} c}{b^{2}}}}\right ) -{\left (6 \, b^{4} x^{3} + 16 \, a b^{3} x^{2} + 9 \, a^{2} b^{2} x - 16 \, a^{3} b\right )} \sqrt{\frac{b^{2} c x^{2} - a^{2} c}{b^{2}}}}{24 \, b^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 - a^2*c/b^2)*(b*x + a)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 19.1444, size = 408, normalized size = 3.14 \[ a^{2} \left (\begin{cases} - \frac{a^{2} \sqrt{c} \operatorname{acosh}{\left (\frac{b x}{a} \right )}}{2 b^{2}} - \frac{a \sqrt{c} x}{2 b \sqrt{-1 + \frac{b^{2} x^{2}}{a^{2}}}} + \frac{b \sqrt{c} x^{3}}{2 a \sqrt{-1 + \frac{b^{2} x^{2}}{a^{2}}}} & \text{for}\: \left |{\frac{b^{2} x^{2}}{a^{2}}}\right | > 1 \\\frac{i a^{2} \sqrt{c} \operatorname{asin}{\left (\frac{b x}{a} \right )}}{2 b^{2}} + \frac{i a \sqrt{c} x \sqrt{1 - \frac{b^{2} x^{2}}{a^{2}}}}{2 b} & \text{otherwise} \end{cases}\right ) + 2 a b \left (\begin{cases} 0 & \text{for}\: c = 0 \\\frac{\left (- \frac{a^{2} c}{b^{2}} + c x^{2}\right )^{\frac{3}{2}}}{3 c} & \text{otherwise} \end{cases}\right ) + b^{2} \left (\begin{cases} - \frac{a^{4} \sqrt{c} \operatorname{acosh}{\left (\frac{b x}{a} \right )}}{8 b^{4}} + \frac{a^{3} \sqrt{c} x}{8 b^{3} \sqrt{-1 + \frac{b^{2} x^{2}}{a^{2}}}} - \frac{3 a \sqrt{c} x^{3}}{8 b \sqrt{-1 + \frac{b^{2} x^{2}}{a^{2}}}} + \frac{b \sqrt{c} x^{5}}{4 a \sqrt{-1 + \frac{b^{2} x^{2}}{a^{2}}}} & \text{for}\: \left |{\frac{b^{2} x^{2}}{a^{2}}}\right | > 1 \\\frac{i a^{4} \sqrt{c} \operatorname{asin}{\left (\frac{b x}{a} \right )}}{8 b^{4}} - \frac{i a^{3} \sqrt{c} x}{8 b^{3} \sqrt{1 - \frac{b^{2} x^{2}}{a^{2}}}} + \frac{3 i a \sqrt{c} x^{3}}{8 b \sqrt{1 - \frac{b^{2} x^{2}}{a^{2}}}} - \frac{i b \sqrt{c} x^{5}}{4 a \sqrt{1 - \frac{b^{2} x^{2}}{a^{2}}}} & \text{otherwise} \end{cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)**2*(-a**2*c/b**2+c*x**2)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.236494, size = 136, normalized size = 1.05 \[ \frac{{\left (\frac{15 \, a^{4} \sqrt{c}{\rm ln}\left ({\left | -\sqrt{b^{2} c} x + \sqrt{b^{2} c x^{2} - a^{2} c} \right |}\right )}{{\left | b \right |}} - \sqrt{b^{2} c x^{2} - a^{2} c}{\left (\frac{16 \, a^{3}}{b} -{\left (9 \, a^{2} + 2 \,{\left (3 \, b^{2} x + 8 \, a b\right )} x\right )} x\right )}\right )}{\left | b \right |}}{24 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 - a^2*c/b^2)*(b*x + a)^2,x, algorithm="giac")
[Out]